<template>
  <el-row :gutter="20">
    <el-col :span="6" v-for="item in list" :key="item.id">
      <div class="grid-content bg-purple">
        <i class="iconfont" :class="item.icon"></i>
        <div>
          <h3>{{ item.name }}</h3>
          <p>{{ item.num }}</p>
        </div>
      </div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="less" scoped>
.bg-purple {
  background: #fff;
}
.grid-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 4px;

  i {
    font-size: 30px;
  }

  h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
  }

  p {
    font-size: 14px;
    font-weight: 700;
  }
}
</style>
